package com.erp.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.erp.dto.TimeOff;

@Entity
@Table(name = "t_timeoff")
public class TTimeOff extends TApply {

	private static final long serialVersionUID = 1L;

	private Date leaveTime;// 请假开始日期
	private Integer dayNumber;// 请假天数
	private Double hourNumber;// 请假小时数
	private String reason;// 请假原因
	private String note;// 请假单备注（工作安排等）

	public TTimeOff() {

	}

	public TTimeOff(TimeOff timeOff) {
		super(timeOff);
		this.leaveTime = timeOff.getLeaveTime();
		this.dayNumber = timeOff.getDayNumber();
		this.hourNumber = timeOff.getHourNumber();
		this.reason = timeOff.getReason();
		this.note = timeOff.getNote();
	}

	@Column(name = "leavetime")
	public Date getLeaveTime() {
		return leaveTime;
	}

	public void setLeaveTime(Date leaveTime) {
		this.leaveTime = leaveTime;
	}

	@Column(name = "daynumber")
	public Integer getDayNumber() {
		return dayNumber;
	}

	public void setDayNumber(Integer dayNumber) {
		this.dayNumber = dayNumber;
	}

	@Column(name = "hournumber")
	public Double getHourNumber() {
		return hourNumber;
	}

	public void setHourNumber(Double hourNumber) {
		this.hourNumber = hourNumber;
	}

	@Column(name = "reason")
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Column(name = "note")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}
